class RestController < ApplicationController
	
  def index
    @categories = Category.find_by_id(1)
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :action => 'service.rxml', :layout => false}
    end
  end
  
  
  def show
    @categories = Category.all
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :action => 'service.rxml', :layout => false}
    end
  end
 
  def service
    @categories = Category.all
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @categories }
    end
  end
	
end
